<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>图书信息管理系统首页</title>
</head>
<body>
<center>
<h2>欢迎使用图书信息管理系统！${user.username}</h2>
</center>
<a href="FindAllServlet">显示所有图书信息</a>||
<a href="find.jsp">查询</a>||
<a href="insert.jsp">添加</a>
<hr>
<br>
<table border="1">
<tr>
<td width="5%">id</td>
<td width="5%">书名</td>
<td width="5%">价格</td>
<td width="5%">ISBN</td>
<td width="5%">出版社</td>
<td width="5%">出版时间</td>
<td width="5%">操作 </td>
</tr>
<c:forEach var="book" items="${books}">
<tr>
<td>${book.id}</td>
<td>${book.name}</td>
<td>${book.price}</td>
<td>${book.ISBN}</td>
<td>${book.press}</td>
<td>${book.publicTime}</td>
<td><a href="edit.jsp?id=${book.id}&name=${book.name}&price=${book.price}&ISBN=${book.ISBN}&press=${book.press}&publicTime=${book.publicTime}">修改 </a>
<a href="DeleteBookServlet?ISBN=${book.ISBN}">删除 </a>
</td>
</tr>
</c:forEach>

</table>
</body>
</html>